home *** CD-ROM | disk | FTP | other *** search
/ Aminet 30 / Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso / Aminet / comm / net / AmiMUD.lha / AmiMUD / Install_AmiMUD < prev    next >
Text File  |  1998-12-29  |  8KB  |  264 lines

  1. ; ************************************************
  2. ; *
  3. ; * AmiMUD - HD Install Script
  4. ; *
  5. ; * $VER: Install_AmiMUD 3.0
  6. ; *
  7. ; * Script written by Gabriele Greco
  8. ; *
  9. ; ************************************************
  10.  
  11. (set lng @language)
  12. (set cpu (database "cpu"))
  13. (if (= cpu 68000) (set #cpu 0)) (if (= cpu 68010) (set #cpu 1))
  14. (if (= cpu 68020) (set #cpu 2)) (if (= cpu 68030) (set #cpu 3))
  15. (if (= cpu 68040) (set #cpu 4)) 
  16. (if (> (exists ("sys:libs/68060.library")) 0) (set #cpu 5) )
  17.  
  18. (set osver (/ (getversion "LIBS:version.library") 65536))
  19.  
  20. (set ToolSource         "AmiMUD.AmiTCP")
  21. (set ConfigSource       "amimud.prefs")
  22. (set DocSource          "AmiMUD.guide")
  23. (set PrefsSource    "AmiMUD_prefs")
  24. (set DocSource2         "ReadMe.FIRST")
  25.  
  26. (set LangSource         "Catalogs/")
  27. (set LibSource1         "output/")
  28. (set LibSource2         "Libs/reqtools.library")
  29.  
  30. (if (= lng "italiano")
  31. (
  32.  
  33. (set CopyLib1Prompt     "Scegli i moduli di output da installare...")
  34. (set CopyLib2Prompt     "Copio reqtools.library? (e' indispensabile per il funzionamento del programma)")
  35. (set ToolDirPrompt      "Dove vuoi installare AmiMUD? (NON sara' creata una nuova directory) ")
  36. (set ConfigDirPrompt    "Vuoi installare la configurazione d'esempio? (Deve essere installata nella stessa directory in cui hai installato il programma)")
  37. (set DocDirPrompt         "Vuoi installare la documentazione del programma? (consigliato in quanto usata anche come help del programma di configurazione)")
  38. (set PrefsPrompt    "Vuoi installare il programma di configurazione? (richiede MUI 3.X)") 
  39. (set ToolCopyPrompt     "Copio AmiMUD...")
  40.  
  41. (set LangCopyPrompt     "Scegli le traduzioni che vuoi installare...")
  42.  
  43. (set RexxExamples       "Vuoi installare gli script arexx dimostrativi?")
  44.  
  45. (set WhichRexx        "Scegli gli script che vuoi installare.")
  46.  
  47. (set HelpOutput        "Dalla versione 3.0 l'output di AmiMUD e' gestito in modo modulare, scegli i moduli che vuoi installare.\n\nansi - Nuovo modulo, supporta l'ansi a 16 colori ed e' veloce con AGA e schede grafiche\n\nconsole - Usa una console per l'output (come le versioni 2.x)")
  48. (set HelpRexx        "La porta arexx di AmiMUD permette al programma di compiere azioni automaticamente anche molto compesse e non riproducibili tramite dei semplici trigger. E' disponibile solo nella versione registrata del programma, questi script sono piu' che tutto degli esempi di programmazione della porta.")
  49.  
  50. (set HelpModules    "Dalla versione 2.5 la configurazione di AmiMUD puo' essere resa modulare. Distribuiti con AmiMUD ci sono due moduli, uno per sfruttare il crypting del testo (compatibile con Elf x Windows) e l'altro per definire i parametri di schermo.")
  51.  
  52. (set RequiresV37Prompt  "AmiMUD funziona solo con sistema operativo 2.0 o versioni sucessive.")
  53.  
  54. (set AskCpu             "Quale e' la CPU della macchina su chi vuoi installare AmiMUD? L'installer ha trovato:\n" )
  55.  
  56. (set AskStack        "Select the TCP stack you own (AmiTCP if not listed)...")
  57.  
  58. (set InComplete     "AmiMUD 3.1 di Gabriele Greco\n\nRicordatevi di leggere la documentazione in quanto il programma ha molte opzioni, o usate il nuovo programma di configurazione!" )
  59.  
  60. (set Modules        "Vuoi installare i moduli di configurazione?" )
  61.  
  62. (set SelectModules    "Scegli quali moduli vuoi installare.")
  63.  
  64. (set PYes        "Si")
  65. (set PNo        "No")
  66. )
  67.  
  68. (
  69. (set CopyLib1Prompt     "Select output modules to install...")
  70. (set CopyLib2Prompt     "Copy reqtools.library?")
  71. (set ToolDirPrompt      "Where do you want to install AmiMUD? (a new directory will NOT be created) ")
  72. (set ConfigDirPrompt    "Do you want to install an example configuration? (must be installed in the same directory where you install AmiMUD)")
  73. (set DocDirPrompt         "Would you like to install the AmiMUD documetation (suggested as it's also the prefs program online help)?")
  74. (set PrefsPrompt    "Would you like to install the preferences program (requires MUI 3.x)?")
  75. (set ToolCopyPrompt     "Copying AmiMUD...")
  76.  
  77. (set LangCopyPrompt     "What locale translations do you want to install?")
  78.  
  79. (set RexxExamples       "Do you want to install the arexx example scripts?")
  80.  
  81. (set WhichRexx        "Select the scripts you would like to install.")
  82.  
  83. (set HelpRexx        "The AmiMUD Arexx port can be used to perform complex actions that trigger can't do. It's available only in the registered version, these script may be useful to understand how to use this port and what it can do.")
  84.  
  85. (set HelpModules    "From V2.5 AmiMUD configuration may be made modular. In this archive there are two modules, one to use the text crypt (compatible with Elf x Windows) and the other to define screen parameters.")
  86.  
  87. (set HelpOutput        "From version 3.0 AmiMUD output is modular, select output modules you need.\n\nansi - This is the new custom output module, supports ANSI 16 and is quicker than console.\n\nconsole - This is the old console output of AmiMUD 2.x.")
  88.  
  89. (set Modules        "Would you like to install the configuration modules?")
  90.  
  91. (set RequiresV37Prompt  "This program requires OS 2.0+.")
  92.  
  93. (set AskCpu             "What CPU does the machine have that you are installing AmiMUD on? The installer has found:\n" )
  94. (set AskStack        "Scegli lo stack TCP che utilizzi (AmiTCP se non listato).")
  95. (set InComplete     "Welcome to AmiMUD 3.1 by Gabriele Greco\n\nThe program has many options so please read carefully the documentation to use it at his top or use the preferences program." )
  96.  
  97. (set SelectModules    "Select the configuration modules you want to install...")
  98.  
  99. (set PYes        "Yes")
  100. (set PNo        "No")
  101.  
  102. )
  103.  
  104. )
  105.  
  106. (if (< osver 36) (abort RequiresV37Prompt) )
  107.  
  108. (welcome)
  109.  
  110.  
  111. ; (set cpuPick (askchoice (choices "68000" "68010" "68020" "68030"
  112. ;                         "68040" "68060"
  113. ;                )
  114. ;             (prompt AskCpu)
  115. ;             (help AskCpu)
  116. ;                   (default #cpu)
  117. ;      )
  118. ;)
  119.  
  120. (set StackPick (askchoice (choices "AmiTCP" "TermiteTCP"
  121.                          "MLink" "INet225" "Miami" )
  122.              (prompt AskStack)
  123.              (help AskStack)
  124.                    (default 0)
  125.       )
  126. )
  127.  
  128. (set ToolDir (askdir
  129.     (prompt ToolDirPrompt)
  130.     (help   @askdir-help)
  131.     (default "sys:")
  132. ))
  133.  
  134. ;(if (> cpuPick 2) (set ToolSource "AmiMUD.020"))
  135. ;(if (> cpuPick 3) (set ToolSource "AmiMUD.040"))
  136.  
  137.  
  138. (if (> StackPick 2) (set ToolSource "AmiMUD.INet"))
  139.  
  140. (copyfiles
  141.     (prompt ToolCopyPrompt)
  142.     (help   @copyfiles-help)
  143.     (source ToolSource)
  144.     (newname "AmiMUD")
  145.     (dest   ToolDir)
  146. )
  147.  
  148. (copyfiles (source "AmiMUD.info") (dest ToolDir) )
  149.  
  150.  
  151. (copyfiles
  152.     (prompt PrefsPrompt)
  153.     (help @copyfiles-help)
  154.     (source PrefsSource)
  155.     (dest ToolDir)
  156.     (confirm)
  157.     (optional)
  158.     (infos)
  159. )
  160.  
  161. (copyfiles
  162.     (prompt DocDirPrompt)
  163.     (help   @copyfiles-help)
  164.     (source "")
  165.     (choices DocSource DocSource2)
  166.     (dest ToolDir)
  167.     (confirm)
  168.         (optional)
  169.     (infos)
  170. )
  171.  
  172. (copyfiles
  173.     (help   @copyfiles-help)
  174.     (source ConfigSource)
  175.     (dest   (askdir
  176.             (prompt ConfigDirPrompt)
  177.             (help   @askdir-help)
  178.             (default ToolDir)
  179.         )
  180.     )
  181.         (optional)
  182. )
  183.  
  184.  
  185. (copyfiles
  186.     (prompt LangCopyPrompt)
  187.     (help   @copyfiles-help)
  188.     (source LangSource)
  189.     (dest   "LOCALE:catalogs")
  190.     (choices "Italiano")
  191.     (optional)
  192.     (confirm)
  193. )
  194.  
  195. (
  196.   (makedir (tackon ToolDir "output") )
  197.  
  198.   (copyfiles
  199.     (prompt CopyLib1Prompt)
  200.     (help   HelpOutput)
  201.     (source LibSource1)
  202.     (dest   (tackon ToolDir "output/") )
  203.     (choices "ansi" "console")
  204.     (optional)
  205.     (confirm)
  206.   )
  207. )
  208.  
  209. (copylib
  210.     (prompt CopyLib2Prompt)
  211.     (help   @copylib-help)
  212.     (source LibSource2)
  213.     (dest   "LIBS:")
  214.     (confirm)
  215. )
  216.  
  217. (if 
  218.   (askbool 
  219.     (prompt RexxExamples ) 
  220.     (choices PYes PNo)
  221.     (default 1) 
  222.     (help HelpRexx ) 
  223.   )
  224.  
  225.   (
  226.     (makedir (tackon ToolDir "rexx") ) 
  227.  
  228.     (copyfiles    
  229.     (prompt WhichRexx)
  230.     (help   @copyfiles-help)
  231.         (source "rexx/")
  232.     (dest   (tackon ToolDir "rexx/" ) )
  233.     (choices "example.amud" "example2.amud" "eatfood.amud" "eatfood2.amud" "savebid.amud" "backstab.amud")
  234.     (optional)
  235.     (confirm)
  236.     )
  237.   )
  238. )
  239.  
  240. (if 
  241.   (askbool 
  242.     (prompt Modules)
  243.     (choices PYes PNo)
  244.     (default 1)
  245.     (Help HelpModules )
  246.   )
  247.  
  248.   (
  249.     (makedir (tackon ToolDir "modules") )
  250.  
  251.     (copyfiles    
  252.     (prompt SelectModules)
  253.     (help   @copyfiles-help)
  254.         (source "modules/")
  255.     (dest   (tackon ToolDir "modules/") )
  256.     (choices "crypt" "screen" "msp")
  257.     (optional)
  258.     (confirm)
  259.     )
  260.   )
  261. )
  262.  
  263. (message InComplete)
  264.